// Component library module
pub mod components;
pub mod css_loader;
pub mod i18n;
pub mod session;

// Re-export all components for convenient access
pub use components::{
    LoginType, MenuItem, UiAccount, UiBadge, UiBanner, UiButton, UiCard, UiInput,
    UiLanguageSelector, UiLayout, UiLogin, UiMenu, UiStarryBackground,
};

// Re-export i18n helpers
pub use i18n::{default_lang, t};

// Re-export session manager
pub use session::SessionManager;

// Re-export CSS loader
pub use css_loader::{StylesProvider, init_styles, load_css};

/// 初始化 r2mo-webel 组件库
/// 这个函数应该在应用启动时调用，以确保所有必要的样式和功能都被正确设置
pub fn init() {
    init_styles();
}
